home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
By Popular Request 2.0
/
By Popular Request 2.0 (Arsenal Computer).ISO
/
amiga_6
/
testport.lha
/
TestPort.DOC
< prev
Wrap
Text File
|
1995-04-12
|
3KB
|
72 lines
TestPort V1.00
TestPort tests mouse buttons or joystick fire button and
returns a result in the system via WARN variable. It is 100%
written in assembler, it is small and compactive. Now it is
possible to check buttons while running in script files.
Here are some technical information:
Current version: 1.00
Executable file lenght: 500 bytes
Source file lenght: 1479 bytes
Document file lenght: 2745 bytes
Development time: 20 minutes
Written in: AsmOne
If you want to check if a button is pressed, then you're
able to use it like this, for instance:
TestPort LEFT
If WARN
Echo "Left button is pressed."
Else
Echo "Left button isn't pressed."
EndIf
This script will write the right message according to
the condition of the left mouse button.
Currently, TestPort takes those parameters:
LEFT ..... it checks if left mouse button is pressed
RIGHT .... same for right mouse button
BOTH ..... are both mouse buttons pressed ?
FIRE ..... check joystick fire button
TestPort is the right choice for startup scripts, for
instance you can put into STARTUP-SEQUENCE something like this:
Echo "Hold left mouse button to load WorkBench..."
Wait 1
TestPort LEFT
If WARN
LoadWB DELAY
EndCLI >NIL:
Else
Echo "OK. WorkBench isn't loaded..."
EndIf
TestPort is easy to use. I hope you will use it in your
script files, expecially in your startup-sequence. Also, for you
happy people with hard drives, I hope it'll be great help for
you. Use it as much as you can or want.
Finally, if you want to contact the author of TestPort,
here is his (my!) address. Don't hold yourself to write to me
if you have any ideas for future upgrades or maybe have you found
a bug. Also I am here for demo swapping, ShareWare and PD stuff.
snail: Dalibor S. Kezele
Toplicka 127
42204 Turcin
CROATIA
e-mail: dkezele@oleh.srce.hr
sentinel@bonus.fido.hr
Bye. And keep that GURU away from #00000000.00000000!!